home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Ebooks / Thinking in C++ V2 / C07 / egcs.makefile < prev    next >
Encoding:
Makefile  |  2000-05-25  |  1.2 KB  |  62 lines

  1. # From Thinking in C++, 2nd Edition
  2. # At http://www.BruceEckel.com
  3. # (c) Bruce Eckel 1999
  4. # Copyright notice in Copyright.txt
  5. # Automatically-generated MAKEFILE 
  6. # For examples in directory C07
  7. # using the egcs compiler
  8. # Note: does not make files that will 
  9. # not compile with this compiler
  10. # Invoke with: make -f egcs.makefile
  11.  
  12. CPP = g++
  13. OFLAG = -o
  14. .SUFFIXES : .o .cpp .c
  15. .cpp.o :
  16.     $(CPP) $(CPPFLAGS) -c $<
  17. .c.o :
  18.     $(CPP) $(CPPFLAGS) -c $<
  19.  
  20. all: \
  21.     Use \
  22.     Stash3Test \
  23.     UnionClass \
  24.     SuperVar \
  25.     MemTest 
  26.  
  27. test: all 
  28.     Use  
  29.     Stash3Test  
  30.     UnionClass  
  31.     SuperVar  
  32.     MemTest  
  33.  
  34. bugs: 
  35.     @echo No compiler bugs in this directory!
  36.  
  37. Use: Use.o Def.o 
  38.     $(CPP) $(OFLAG)Use Use.o Def.o 
  39.  
  40. Stash3Test: Stash3Test.o Stash3.o 
  41.     $(CPP) $(OFLAG)Stash3Test Stash3Test.o Stash3.o 
  42.  
  43. UnionClass: UnionClass.o 
  44.     $(CPP) $(OFLAG)UnionClass UnionClass.o 
  45.  
  46. SuperVar: SuperVar.o 
  47.     $(CPP) $(OFLAG)SuperVar SuperVar.o 
  48.  
  49. MemTest: MemTest.o Mem.o 
  50.     $(CPP) $(OFLAG)MemTest MemTest.o Mem.o 
  51.  
  52.  
  53. Def.o: Def.cpp 
  54. Use.o: Use.cpp 
  55. Stash3.o: Stash3.cpp Stash3.h 
  56. Stash3Test.o: Stash3Test.cpp Stash3.h ../require.h 
  57. UnionClass.o: UnionClass.cpp 
  58. SuperVar.o: SuperVar.cpp 
  59. Mem.o: Mem.cpp Mem.h 
  60. MemTest.o: MemTest.cpp Mem.h 
  61.  
  62.